package com.xcm.core;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import com.xcm.core.interceptor.ClientPermissionInterceptor;

@SuppressWarnings("deprecation")
@SpringBootConfiguration
public class WebConfig extends  WebMvcConfigurerAdapter{
	
	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new ClientPermissionInterceptor()).addPathPatterns("/client/**");
	}
	
}
